# -*- coding: utf-8 -*-
import scrapy


class S03Spider(scrapy.Spider):
    name = 's03'
    allowed_domains = ['http://hnzj.chinahrt.com/']

    start_urls = ['http://http://hnzj.chinahrt.com//']
    def parse(self, response):
        print(response.body)
        print('*'*30)
        print(response.xpath('//div[@class="menuList m0"]//li/a/text()').extract())


    # def start_requests(self):
    #     yield scrapy.Request(
    #         url='http://http://hnzj.chinahrt.com//',
    #         callback=self.parse2
    #     )
    #
    # def parse2(self, response):
    #     print(response.body)
    #     print('*' * 30)
    #     print(response.xpath('//div[@class="menuList m0"]//li/a/text()').extract())
